home *** CD-ROM | disk | FTP | other *** search
-
- TstPubScr V1.00 DOCUMENTATION FILE
- ----------------------------------
-
- (w)6.3.1995 by Hans Bühler, Codex Design Software
-
-
- I: Everything you have to know
-
- Copyright
-
- Nothing is copyrighted in here.
- Program freeware, source free, docs free.
-
- Disclaimer
-
- You will use this program on your very own risk !
- No gurantee is taken that nothing will cause loss of data or damage
- to your machine.
-
- II: TstPubScr
-
- Introduction
-
- This program has a fairly simple job to do: Just find out whether a
- give public screen name is known to the system or not.
- I need this program, because I use a MultiView-Batch (to have a look
- at some guides) both from my editor's public screen (CygnusEdScreen1)
- and from the Workbench (default public screen).
- I wanted to be able to invoke that script from CED either from its own
- screen or from the publlic screen its been opened on (Workbench).
-
- Thus, I needed a program returning RETURN_WARN == 5 if a public screen
- is not been found or RETURN_OK == 0 if everything is well.
-
- Parameters
-
- Once you type "tstpubscr ?" you'll be prompted to:
-
- PUBSCRNAME,FORMAT/K,DEFAULT/S,FORCE/S,BATCH/S,LOCK=UNLOCK/S:
-
- if you type in nothing, a short list of all public screens known to your
- system will be printed out.
-
- PUBSCREENNAME=<name> : if you give me a <name>, tstpubscr will try to lock
- that public screen <name> and will return its name
- to stdout, if found. In other cases it will return
- "" to indicate the default publicscreen name.
- Send this output to a local environment variable to
- open your thing on the screen found for you.
- If the desired screen had been found, the prog will
- return RETURN_OK == 0, otherwise it will return
- RETURN_WARN == 5 whereby you can check this level by
- a simple IF command.
- FORMAT=<pattern> : Is used to specify the output mode of tstpubscr.
- Normally, it prints out the name "<name>" (quoted!).
- You may change this (to create script files or
- something). Use '%s' to be replaced by the screen's
- name.
- Does also work in addition to the list mode.
- DEFAULT : Useless at all. Does always return "". One thing is
- that it checks whether there is any default public
- screen (RETURN_ERROR).
- FORCE : Permits tstpubscr to return the default public screens
- name when the one specified by you is not been found.
- BATCH : Surpress all additional output.
- Made for use in batch scripts (check out
- 'tstpubscr' and 'tstpubscr BATCH' on the other hand !).
- LOCK / UNLOCK : Commands tstpubscr to keep a lock on the screen found
- (or on the default one, if FORCE is NOT used).
- You have to unlock this screen, if you've finished work
- (e.g. if you have opened the window you were out to
- open).
- To unlock a screen, use the same commandline (so the
- prog will be able to find the screen you mean) and
- replace LOCK by UNLOCK. Note: De facto, LOCK and UNLOCK
- are the same. A second LOCK on a screen will unlock it!
- Note 2: tstpubscr will remember the screen(s) having
- been locked by adding a msgport to the system's port-
- list. DO NOT REMOVE THESE PORTS ! IT'S tstpubscr's
- TASK TO DO SO !!!!!!!!!!
-
- Example
-
- You want to run Multiview on a publicscreen 'CygnusEdScreen1' or on the
- Workbench, if CED is not active or using the Workbench-screen:
-
- {
- echo >ram:dummy NOLINE "run >NIL: multiview >NIL: <NIL: FILE=HELPDIR:file
- PUBSCREEN="
- tstpubscr >>ram:dummy CygnusEdScreen1 BATCH
- execute ram:dummy
- delete ran:dummy
- }
-
- Or anything else...
-
- III: See ya
-
- Okay, bye,bye and have nice future.
-
- Contact me if you want:
-
- e-mail h0348kil@rz.hu-berlin.de
- phone ++49 (0)30 3963374
- scripts Hans Bühler, Emdener Strasse 48, 10551 Berlin, Germany
-
-